import time
from units1.Page import Page
import unittest
from selenium import webdriver
# 调用yaml文件
from time import sleep

# 定义测试类
class Test_case(unittest.TestCase):

    def setUp(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(10)
        self.driver.quit()

    # 测试用例
    def test_luoji_01(self):
        po = Page(self.driver)
        po.luoji_01_login()